package com.neuedu.web.listener;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

/**
 * @author 金山
 * 项目：javaweb
 * site: https://blog.fulfill.com.cn
 * 描述
 *
 *
 *
 * HttpServletRequest     request
 * HttpServletResponse     response
 * HttpSession            session
 * ServletContext       application
 *
 *
 * @data 2024/11/1813:58
 */
// @WebListener
public class ContextStartLinstener implements ServletContextListener {


    @Override
    public void contextInitialized(ServletContextEvent sce) {
        // ServletContextListener.super.contextInitialized(sce);
        System.out.println("ContextStartLinstener.contextInitialized 创建");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        // ServletContextListener.super.contextDestroyed(sce);

        System.out.println("ContextStartLinstener.contextDestroyed 销毁");
    }
}
